﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.LogOnModel>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Innskráning
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("MenuBar"); %>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Innskráning</h2>
    <p>
            Vinsamlegast sláðu inn notandanafnið þitt og lykilorð. Þú getur <%= Html.ActionLink("nýskráð", "Register")%> þig ef þú ert ekki með aðgang.
    </p>
    <p>&nbsp;</p>

    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Rangt notandanafn eða lykilorð") %>
        <p>&nbsp;</p>
        <div>
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.UserName) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserName) %>
                    <%= Html.ValidationMessageFor(m => m.UserName) %>
                </div>
                <div class="clear"></div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.Password) %>
                </div>
                <div class="editor-field">
                    <%= Html.PasswordFor(m => m.Password) %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </div>
                <div class="clear"></div>
                
                <div>
                    <%= Html.CheckBoxFor(m => m.RememberMe) %>
                    <%= Html.LabelFor(m => m.RememberMe) %>
                </div>
                <div class="clear"></div>
                
                <p>
                    <input type="submit" value="Innskrá" />
                </p>
        </div>
    <% } %>
</asp:Content>
